for i in range(100,1000):
    c=i%10
    b=int((i/10))%10
    a=int(i/100)
    if a**3+b**3+c**3 == i: 
        print(i)
input('Press any key to continue>')